package cl.pelu.utils;

import java.sql.SQLException;
import cl.pelu.bpro.PeluBusiness;
import cl.pelu.bpro.PeluBusinessImpl;
import cl.pelu.config.SqlMapConfig;
import cl.pelu.dao.PeluIbatisDao;
import cl.pelu.dao.PeluIbatisDaoImpl;

public class PeluFacade {
	
    protected static final PeluBusiness peluBusiness;
    protected static final PeluIbatisDao peluIbatisDao;
	
	static  {
		
			peluIbatisDao = new PeluIbatisDaoImpl();  
			peluIbatisDao.setSqlMapClient(SqlMapConfig.getSqlMap());
			peluBusiness  = new PeluBusinessImpl();
			peluBusiness.setpeluIbatisDaoImpl(peluIbatisDao);
	}

	public static PeluBusiness getPeluqueriaComponent(){
		return peluBusiness;
	}
	
}
